import request from '@/utils/request'

const baseUrl = process.env.VUE_APP_BASE_API + '/scheduling'

export function listScheduling() {
  return request({
    url: `${baseUrl}`,
    method: 'get'
  })
}

export function insertScheduling(data) {
  return request({
    url: `${baseUrl}`,
    method: 'post',
    data
  })
}

export function listUserScheduling(username) {
  return request({
    url: `${baseUrl}/user`,
    method: 'get',
    params: { username: username }
  })
}
